!!!
%html{:xmlns=>"http://www.w3.org/1999/xhtml"}
  %head
    %meta{'http-equiv'=>"Content-Type", :content=>"text/html; charset=utf-8"}
    %META{'HTTP-EQUIV'=>"Pragma", :CONTENT=>"no-cache"}
    %META{'HTTP-EQUIV'=>"Expires", :CONTENT=>"-1"}
    = javascript_include_tag 'jquery'
    = stylesheet_link_tag "songrit", "nares", "chaiyo"
    %title DLOC::E-learning - Chat
  %body
    = render :partial => "layouts/theme_top"
    .page
      .notice= flash[:notice]
      .main= yield
      .command= render :partial=>"layouts/command"
    - unless (params[:controller]=='main' and params[:action]=='chat'  ) or current_user.blank?
      - att= {:src=>"#{CHAT_SERVER}/main/remove_chat_user?login=#{current_user.login}", :width=>"0", :height=>"0"}
      %iframe{ att }
    - if @annouce && current_user
      - att= {:src=>"#{CHAT_SERVER}/main/annouce_chat_user?login=#{current_user.login}", :width=>"0", :height=>"0"}
      %iframe{ att }
